import { interval } from 'rxjs'
import { map } from 'rxjs/operators'

interval(1000)
  .pipe(map(n => n * 2))
  .subscribe(console.log)
